ARG jdk_version=openjdk:11
FROM $jdk_version

ARG jarname="kafka-lyk-3.3.0-SNAPSHOT.jar"

# Do not ask for confirmations when running apt-get, etc.
ENV DEBIAN_FRONTEND noninteractive

ARG UID="10001"

EXPOSE "9092"

WORKDIR "/opt/kafka/"
ADD "./core/build/distributions/kafka_2.13-3.3.0-SNAPSHOT.tgz" .

WORKDIR "/opt/kafka/kafka_2.13-3.3.0-SNAPSHOT"

RUN chmod +x ./bin/*

ENTRYPOINT ["./bin/start.sh"]
